﻿jQuery(document).ready(function(){
	var img_data = new Array(
		{"selector": ".browse-view .product .product_image > a > img", "width": "207", "height": "200"},
		{"selector": "img.not-resize-image", "width": "215", "height": "215"}
	);
	var arr_img, image, img_src;
	jQuery.each(img_data, function(i, iVal){
		arr_img = jQuery(iVal.selector);
		jQuery.each(arr_img, function(j, jVal){
			img_src = jQuery(jVal).attr("src");
			jQuery(jVal).wrap("<div class='center-image' style='width: "+ iVal.width +"px; height: "+ iVal.height +"px; overflow: hidden; background: url(\""+  img_src +"\") no-repeat center center #FFF; background-size: contain; border: none;'></div>");
			jQuery(jVal).remove();
		});
	});
 });